<template>
  <div class="content">
    <h2>{{ type }}分类</h2>
    <ul>
      <li v-for="item in list" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>


<script>
export default {
  name: "Content",
  props: ["id", "type", "list"],
};
</script>

<style>
.content {
  background-color: cyan;
  overflow: hidden;
  width: 200px;
  height: 250px;
}
.content h2 {
  background-color: pink;
}
</style>
